package com.android.wake_up_enable_hotspot;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Build;

import androidx.annotation.RequiresApi;

public class BootCompleteReceiver extends BroadcastReceiver {

    @RequiresApi(api = Build.VERSION_CODES.O)
    @Override
    public void onReceive(Context context, Intent intent) {
        if (!SpUtil.isFeaturesEnable(context)) {
            return;
        }
        context.startForegroundService(new Intent(context, BootCompleteService.class));
    }
}